package com.example.day05;

public class ShaperBir {

    public    void  printArea(Shape shape){
        System.out.println(shape.area());
    }

    public  void printGirth(Shape shape){
        System.out.println(shape.girth());
    }
}

class   ShaperBirtest{
    public static void main(String[] args) {
        Shape rect=new Rect(4,5);

        ShaperBir shaperBir=new ShaperBir();
        shaperBir.printArea(rect);
        shaperBir.printGirth(rect);

    }
}
